package com.xh.bussiness.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xh.bussiness.tiku.model.BookVersion;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 用户组学科关系
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
@Data
@Accessors(chain = true)
@TableName("sys_group_subject")
public class GroupSubject extends Model<GroupSubject> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 用户组id
     */
    private String groupId;

    /**
     * 学科code
     */
    private String subjectCode;

    /**
     * 学科名称
     */
    private String subjectName;

    /**
     * 学段id
     */
    private String gradeRangeId;

    /**
     * 学段名称
     */
    private String gradeRangeName;

    /**
     * 标签数量
     */
    @TableField(exist = false)
    private Integer labelCount;

    /**
     * 所有年份
     */
    @TableField(exist = false)
    private List<Dictionary> years;
    /**
     * 所有年级
     */
    @TableField(exist = false)
    private List<Dictionary> grades;
    /**
     * 所有学期
     */
    @TableField(exist = false)
    private List<Dictionary> semester;
    /**
     * 所有课程分类
     */
    @TableField(exist = false)
    private List<Dictionary> courseTypes;
    /**
     * 教材版本
     */
    @TableField(exist = false)
    private List<Dictionary> bookVersions;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
